package com.forekonw.demo4;


import java.util.Scanner;

/**
 *找出数组中最大值的下标位置
 */
public class TestMethod9 {
    public static int asd (int[] array) {
        int m = 0;
        for (int i = 1 ; i < array.length; i++) {
            if (array[m] < array[i]){
                m = i;
            }
        }
        return m;
    }
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入五个整数");
        int[] b = new int[5];
        for (int i = 0; i < b.length; i++) {
            b[i] = input.nextInt();
        }
        for (int i = 0;i < b.length;i++){
            System.out.println("+");
        }
        int num = asd(b);
        System.out.println(num);
    }
}









